﻿using System;

namespace TextEditor
{
    

    public class A_MergeTableCell : A_Action
    {
        public override string ActionName()
        {
            return "tablecellmerge";
        }

        public override A_Action Clone()
        {
            A_MergeTableCell cell = new A_MergeTableCell();
            cell.BaseCloneFrom(this);
            return cell;
        }

        public override bool Execute()
        {
            base.myOwnerDocument._MergeTableCell();
            return true;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.GetInTable(base.myOwnerDocument.Content.CurrentElement) == null ? false : true;
        }

        public override bool UIExecute()
        {
            base.myOwnerDocument._MergeTableCell();
            return true;
        }
    }
}

